<h2>Delete Media</h2>

<p>
  Are you sure you want to permanently delete the following file?
</p>

<%= Thoth::MediaController.render_view('media', :file => @file) %>

<form action="<%= Thoth::MediaController.r(:delete, @file.id) %>" method="post">
  <p>
    <input type="hidden" name="token" value="<%== form_token %>" />
    <button name="confirm" value="yes">Yes, delete this file forever</button>
    <button name="confirm" value="no">No, do not delete this file</button>
  </p>
</form>
